package org.ruoyi.common.chat.service;

import org.ruoyi.common.chat.handler.WebSocketMessageHandler;
import org.ruoyi.common.chat.interceptor.PlusWebSocketInterceptor;
import org.springframework.stereotype.Service;

@Service
public class ChatService {

    private final WebSocketMessageHandler messageHandler;
    private final PlusWebSocketInterceptor handshakeInterceptor;

    public ChatService(WebSocketMessageHandler messageHandler, PlusWebSocketInterceptor handshakeInterceptor) {
        this.messageHandler = messageHandler;
        this.handshakeInterceptor = handshakeInterceptor;
    }

    // 提取的公共逻辑方法
    public void commonLogic() {
        // 实现公共逻辑
    }
}
